package com.hnzq.cloud.sendassembly.service;

import com.hnzq.cloud.IO.AddDriverworkIO;
import com.hnzq.cloud.IO.DriverToAreaParam;
import com.hnzq.cloud.IO.entity.FreDriverwork;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hnzq.cloud.util.FreException;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author tiangle
 * @since 2022-02-07
 */
public interface FreDriverworkService extends IService<FreDriverwork> {
    FreDriverwork getById(Integer id);
    FreDriverwork getByUserId(Integer id) throws FreException;
    FreDriverwork getByArea(Integer id) throws FreException;
    boolean addFreDriverwork(AddDriverworkIO addDriverworkIO);
    boolean editFreDriverwork(AddDriverworkIO addDriverworkIO);
    boolean addArea(DriverToAreaParam driverToAreaParam) throws FreException;
    boolean deleteDriverwork(Integer id);
}
